package es.yell.wsdl.BookPlanSrv;

public class BookPlanSrvPortTypeProxy implements es.yell.wsdl.BookPlanSrv.BookPlanSrvPortType {
  private String _endpoint = null;
  private es.yell.wsdl.BookPlanSrv.BookPlanSrvPortType bookPlanSrvPortType = null;
  
  public BookPlanSrvPortTypeProxy() {
    _initBookPlanSrvPortTypeProxy();
  }
  
  public BookPlanSrvPortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initBookPlanSrvPortTypeProxy();
  }
  
  private void _initBookPlanSrvPortTypeProxy() {
    try {
      bookPlanSrvPortType = (new es.yell.wsdl.BookPlanSrv.BookPlanSrvLocator()).getBookPlanSrvPort();
      if (bookPlanSrvPortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)bookPlanSrvPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)bookPlanSrvPortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (bookPlanSrvPortType != null)
      ((javax.xml.rpc.Stub)bookPlanSrvPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public es.yell.wsdl.BookPlanSrv.BookPlanSrvPortType getBookPlanSrvPortType() {
    if (bookPlanSrvPortType == null)
      _initBookPlanSrvPortTypeProxy();
    return bookPlanSrvPortType;
  }
  
  public es.yell.schema.BookPlan.Campania.HitoRefType[] getBookPlan(es.yell.schema.BookPlan.Campania.CamRefType campania) throws java.rmi.RemoteException, es.yell.wsdl.BookPlanSrv.WSExceptionType{
    if (bookPlanSrvPortType == null)
      _initBookPlanSrvPortTypeProxy();
    return bookPlanSrvPortType.getBookPlan(campania);
  }
  
  public es.yell.schema.BookPlan.Campania.CamRefType[] getNextBook(es.yell.schema.BookPlan.Campania.CamRefType campania) throws java.rmi.RemoteException, es.yell.wsdl.BookPlanSrv.WSExceptionType{
    if (bookPlanSrvPortType == null)
      _initBookPlanSrvPortTypeProxy();
    return bookPlanSrvPortType.getNextBook(campania);
  }
  
  public es.yell.wsdl.BookPlanSrv.FeVigencia getBookAvailability(es.yell.schema.BookPlan.Campania.CamRefType campania) throws java.rmi.RemoteException, es.yell.wsdl.BookPlanSrv.WSExceptionType{
    if (bookPlanSrvPortType == null)
      _initBookPlanSrvPortTypeProxy();
    return bookPlanSrvPortType.getBookAvailability(campania);
  }
  
  
}